package com.clkj.xiuzheng.pojo.shangcheng;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;

/**
 * @author yawang
 */
@ApiModel( value ="t_xz_topicOrVideo" )
@Table( name ="t_xz_topicOrVideo" )
public class TopicOrVideo  implements Serializable {


	/**
	 * 百科主表id
	 */
	@Id
   	@Column(name = "baike_id",updatable = false )
	@ApiModelProperty( value="百科主表id")
	private Integer baikeId;

	/**
	 * 文章或视频标题
	 */
   	@Column(name = "baike_title" )
	@ApiModelProperty( value="文章或视频标题")
	private String baikeTitle;

	/**
	 * 类型 0图文 1视频
	 */
   	@Column(name = "baike_type" )
	@ApiModelProperty( value="类型 0图文 1视频")
	private Integer baikeType;

	/**
	 * 文章或视频内容  文章为图片，视频为视频
	 */
   	@Column(name = "baike_content" )
	@ApiModelProperty( value="文章或视频内容  文章为图片，视频为视频")
	private String baikeContent;

	/**
	 * 文章或视频主图
	 */
   	@Column(name = "baike_img" )
	@ApiModelProperty( value="文章或视频主图")
	private String baikeImg;

	/**
	 * 关联商品id
	 */
   	@Column(name = "product_id" )
	@ApiModelProperty( value="关联商品id")
	private Integer productId;

	/**
	 * 文章或视频副标题
	 */
   	@Column(name = "baike_subtitle" )
	@ApiModelProperty( value="文章或视频副标题")
	private String baikeSubtitle;

	/**
	 * 点赞数
	 */
   	@Column(name = "prise_num" )
	@ApiModelProperty( value="点赞数")
	private Integer priseNum;

	/**
	 * 收藏数
	 */
   	@Column(name = "collection_num" )
	@ApiModelProperty( value="收藏数")
	private Integer collectionNum;

	/**
	 * 评论数
	 */
   	@Column(name = "comment_num" )
	@ApiModelProperty( value="评论数")
	private Integer commentNum;

	/**
	 * 状态 0 下架 1 上架
	 */
   	@Column(name = "baike_status" )
	@ApiModelProperty( value="状态 0 下架 1 上架")
	private Integer baikeStatus;

	/**
	 * 文章或视频分类
	 */
   	@Column(name = "category_id" )
	@ApiModelProperty( value="文章或视频分类")
	private Integer categoryId;

	/**
	 * 公司id
	 */
   	@Column(name = "company_id" )
	@ApiModelProperty( value="公司id")
	private Integer companyId;


	/**
	 * 创建时间
	 */
	@Column(name = "created_time" )
	@ApiModelProperty( value="创建时间")
	private String createdTime;


	/**
	 * 置顶，数字越大，越往前
	 */
	@Column(name = "is_top" )
	@ApiModelProperty( value="置顶，数字越大，越往前")
	private Integer isTop;

	@Transient
	private String categoryName;


  public Integer getBaikeId() {
    return baikeId;
  }

  public void setBaikeId(Integer baikeId) {
    this.baikeId = baikeId;
  }


  public String getBaikeTitle() {
    return baikeTitle;
  }

  public void setBaikeTitle(String baikeTitle) {
    this.baikeTitle = baikeTitle;
  }


  public Integer getBaikeType() {
    return baikeType;
  }

  public void setBaikeType(Integer baikeType) {
    this.baikeType = baikeType;
  }


  public String getBaikeContent() {
    return baikeContent;
  }

  public void setBaikeContent(String baikeContent) {
    this.baikeContent = baikeContent;
  }


  public String getBaikeImg() {
    return baikeImg;
  }

  public void setBaikeImg(String baikeImg) {
    this.baikeImg = baikeImg;
  }


  public Integer getProductId() {
    return productId;
  }

  public void setProductId(Integer productId) {
    this.productId = productId;
  }


  public String getBaikeSubtitle() {
    return baikeSubtitle;
  }

  public void setBaikeSubtitle(String baikeSubtitle) {
    this.baikeSubtitle = baikeSubtitle;
  }


  public Integer getPriseNum() {
    return priseNum;
  }

  public void setPriseNum(Integer priseNum) {
    this.priseNum = priseNum;
  }


  public Integer getCollectionNum() {
    return collectionNum;
  }

  public void setCollectionNum(Integer collectionNum) {
    this.collectionNum = collectionNum;
  }


  public Integer getCommentNum() {
    return commentNum;
  }

  public void setCommentNum(Integer commentNum) {
    this.commentNum = commentNum;
  }


  public Integer getBaikeStatus() {
    return baikeStatus;
  }

  public void setBaikeStatus(Integer baikeStatus) {
    this.baikeStatus = baikeStatus;
  }


  public Integer getCategoryId() {
    return categoryId;
  }

  public void setCategoryId(Integer categoryId) {
    this.categoryId = categoryId;
  }


  public Integer getCompanyId() {
    return companyId;
  }

  public void setCompanyId(Integer companyId) {
    this.companyId = companyId;
  }

	public String getCreatedTime() {
		return createdTime;
	}

	public void setCreatedTime(String createdTime) {
		this.createdTime = createdTime;
	}

	public Integer getIsTop() {
		return isTop;
	}

	public void setIsTop(Integer isTop) {
		this.isTop = isTop;
	}

	public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}
}
